﻿<%@ Page Title="" Language="C#" Theme="Alpha" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="App.Edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div designerregion="0">
    <asp:Panel ID="Panel1" runat="server">
        <h1>Změna údajů</h1>
        <asp:Label ID="Label1" runat="server" CssClass="formMessage" Visible="False"></asp:Label>
        <div class="formText">
            <asp:Label ID="LabelNick" runat="server" Text="Přezdívka:"></asp:Label>
            <asp:Label ID="LblNick" runat="server" CssClass="right"></asp:Label>
        </div>
        <asp:Panel ID="Panel2" runat="server">
            <div class="formField">
                <asp:Label ID="LabelPassA" runat="server" Text="Nové heslo:"></asp:Label>
                <asp:TextBox ID="TextBoxPA" runat="server" TextMode="Password"></asp:TextBox>
            </div>
            <div class="formField">
                <asp:Label ID="LabelPassB" runat="server" Text="Povrzení hesla:"></asp:Label>
                <asp:TextBox ID="TextBoxPB" runat="server" TextMode="Password"></asp:TextBox>
            </div>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ErrorMessage="Hesla musí být totožná" ValidationGroup="EditValidation" ControlToValidate="TextBoxPA" ControlToCompare="TextBoxPB" ></asp:CompareValidator>
        </asp:Panel>
        <asp:Panel ID="Panel3" runat="server">
            <div class="formField">
                <asp:Label ID="LabelName" runat="server" Text="Jméno:"></asp:Label>
                <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
            </div>
            <div class="formField">
                <asp:Label ID="LabelSurname" runat="server" Text="Příjmení:"></asp:Label>
                <asp:TextBox ID="TextBoxSurname" runat="server"></asp:TextBox>
            </div>
            <div class="formField">
                <asp:Label ID="LabelAddress" runat="server" Text="Adresa:"></asp:Label>
                <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
            </div>
            <div class="formField">
                <asp:Label ID="LabelPhone" runat="server" Text="Telefon: +420"></asp:Label>
                <asp:TextBox ID="TextBoxPhone" runat="server" MaxLength="9"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TextBoxPhone" FilterType="Custom" ValidChars="0123456789"></ajaxToolkit:FilteredTextBoxExtender>
            </div>           
            <div class="formField">
                <asp:Label ID="LabelEmailP" runat="server">Email:</asp:Label>
                <asp:TextBox ID="TextBoxEmailP" runat="server"></asp:TextBox>
            </div>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Email musí být zadán" ControlToValidate="TextBoxEmailP" ValidationGroup="EditValidation" ></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Email má špatný tvar" ControlToValidate="TextBoxEmailP" ValidationGroup="EditValidation" ValidationExpression="[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}"></asp:RegularExpressionValidator >
            <div class="formField">
                <asp:Label ID="LabelEmailS" runat="server" Text="Záložní email:"></asp:Label>
                <asp:TextBox ID="TextBoxEmailS" runat="server"></asp:TextBox>
            </div>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"  ErrorMessage="Email má špatný tvar" ControlToValidate="TextBoxEmailS" ValidationGroup="EditValidation" ValidationExpression="[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}"></asp:RegularExpressionValidator >
            <div class="formField">
                <asp:Label ID="LabelICQ" runat="server" Text="ICQ:"></asp:Label>
                <asp:TextBox ID="TextBoxICQ" runat="server" MaxLength="9" ></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TextBoxICQ" FilterType="Custom" ValidChars="0123456789"></ajaxToolkit:FilteredTextBoxExtender>
            </div>
            
            <div class="formField">                
                <asp:Label ID="Label2" runat="server" Text="Avatar URL:"></asp:Label>
                <asp:TextBox ID="TextBoxURL" runat="server"></asp:TextBox>
            </div>
            <div class="formButton">
                <asp:Button ID="ButtonConfirmEditation" runat="server" Text="Uložit" onclick="LinkButton6_Click" ValidationGroup="EditValidation"/>
            </div>
        </asp:Panel>
    </asp:Panel>
    </div>
</asp:Content>
